﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using XDL.Framework;

namespace XDL.Framework.Screens
{
    public class TextBlock : 
        TextElement
    {
        public TextBlock()
        {
        }

        public TextBlock(string text):
            base(text)
        {

        }

        /// <summary>
        /// Draws the menu entry. This can be overridden to customize the appearance.
        /// </summary>
        public override void Draw(MenuScreen screen, Vector2 position,
                                 bool isSelected, GameTime gameTime)
        {
            // text color
            Color color = screen.TextColor;
            // Modify the alpha to fade text out during transitions.
            color.A = screen.TransitionAlpha;

            Draw(screen, position, gameTime, color);
        }

        public override void HandleInput(XDL.Framework.Input.InputState input)
        {
            // does nothing
        }
    }
}
